<template>
  <div>
    <h1>孙子辈组件</h1>
    <h1>祖先组件的传值：{{btext}}</h1>
  </div>
</template>


<script setup>
  import {inject} from 'vue'
  let btext=inject('btext');
  console.log(btext,"-00000000000000")



</script>